# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=valhalla-api
_pkgname=valhallaAPI
pkgver=87.c010a48
pkgrel=12
pkgdesc='Valhalla API Client.'
arch=('any')
groups=('blackarch' 'blackarch-automation' 'blackarch-misc')
url='https://github.com/NextronSystems/valhallaAPI'
license=('Apache')
depends=('python' 'python-requests' 'python-pytest' 'python-packaging')
makedepends=('git' 'python-setuptools')
source=("git+https://github.com/NextronSystems/$_pkgname.git")
sha512sums=('SKIP')

build() {
  cd $_pkgname

  python setup.py build
}

package() {
  cd $_pkgname

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

